﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
using System.IO;
using System.Xml;

public partial class Demos_UsageLog : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string sourceFile = WbGetParams.UsageLogFile;

        try
        {
            string fileName = Path.Combine(HttpRuntime.AppDomainAppPath, sourceFile);
            DataSet ds = new DataSet();

            ds.ReadXml(fileName);

            if (ds != null)
            {
                grdxml.DataSource = ds;
                grdxml.DataBind();
            }            
        }
        catch (Exception)
        {
        }
    }
      
}